home *** CD-ROM | disk | FTP | other *** search
- global folderName, sndPath, gMachine, gPictureCastNumBase, gCurPicture, gTabSprite, gMicFileList, gMicFlashTimes, gFlashCastNum
-
- on startMovie
- set gCurPicture to 1
- set gPictureCastNumBase to 60
- set folderName to "flash" & gMachine
- set sndPath to the pathName & "snd" & gMachine & "flash" & gMachine
- initForEachMovie(#flash)
- preloadMember(member 12)
- preloadMember(member (gPictureCastNumBase + 1))
- preloadMember(member "flash sound")
- preLoadRange(37, 50)
- set gMicFileList to list("monks", "redeye", "fillin", "bear", "jazz", "kiosk", "sign", "stuffed", "beer", "bounce2")
- set gMicFlashTimes to list(9.5, 4.5, 4.5, 8, 8, 5.5, 4, 10, 3.5, 7) * 60
- end
-
- on stopMovie
- end
-
- on doThumbNailLeftRight leftOrRight
- if leftOrRight = -1 then
- if gCurPicture = 1 then
- set gCurPicture to 10
- else
- set gCurPicture to gCurPicture - 1
- end if
- else
- if gCurPicture = 10 then
- set gCurPicture to 1
- else
- set gCurPicture to gCurPicture + 1
- end if
- end if
- doThumbNailAnimation(29, 18 + (gCurPicture - 1), 2, leftOrRight)
- setupThumbNailCounter(gCurPicture, 10)
- NewPicture()
- end
-
- on NewPicture
- set the castNum of sprite 7 to gPictureCastNumBase + ((gCurPicture - 1) * 2)
- if (gCurPicture = 5) or (gCurPicture = 10) then
- set flashCast to 37
- else
- set flashCast to 45
- end if
- set the castNum of sprite 10 to flashCast
- setMainPhotoLoc(the castNum of sprite 7)
- updateTabs()
- preloadMember(gPictureCastNumBase + ((gCurPicture - 1) * 2) + 1)
- repeat with ix = 1 to 6
- preloadMember(the castNum of sprite 10 + (ix - 1))
- end repeat
- end
-
- on finishIntro
- set the mouseDownScript to EMPTY
- set the mouseUpScript to EMPTY
- finishIntroBecauseOfMouseClick()
- end
-
- on finishIntroBecauseOfMouseClick
- global gSavePhotoCastNum, start, oldStart, gDoOnMouseDown
- puppetSprite(7, 1)
- set the castNum of sprite 7 to gSavePhotoCastNum
- set the castNum of sprite 10 to gFlashCastNum
- setMainPhotoLoc(gSavePhotoCastNum)
- updateTabs()
- updateStage()
- set gDoOnMouseDown to EMPTY
- finishIntroCore()
- end
-
- on doFlashMouseUp
- set the mouseUpScript to EMPTY
- dontPassEvent()
- doFlashUp(1)
- end
-
- on flashIsOff
- set curCastNum to the castNum of sprite 10
- return (curCastNum = 37) or (curCastNum = 45)
- end
-
- on doFlashUp dosound
- set curCastNum to the castNum of sprite 10
- if (curCastNum = (37 + 1)) or (curCastNum = (45 + 1)) then
- if dosound then
- puppetSound("flash sound")
- end if
- repeat with ix = 1 to 3
- set the castNum of sprite 10 to the castNum of sprite 10 + 1
- if ix = 2 then
- set saveCast to the castNum of sprite 7
- set the castNum of sprite 7 to 12
- else
- if ix = 3 then
- set the castNum of sprite 7 to saveCast + 1
- end if
- end if
- updateStage()
- mydelay(3)
- end repeat
- if dosound then
- puppetSound(0)
- end if
- else
- set the castNum of sprite 10 to the castNum of sprite 10 - 5
- set the castNum of sprite 7 to the castNum of sprite 7 - 1
- updateStage()
- end if
- end
-